<template>
  <div class="logo">
    <router-link :to="{ path:reload}">
      <LogoSvg alt="logo" />
      <b class="b">{{ title }}</b>
      <h1 v-if="showTitle">{{ title }}</h1>
    </router-link>
  </div>
</template>

<script>
import LogoSvg from '@/assets/logo.svg?inline'

export default {
  name: 'Logo',
  components: {
    LogoSvg
  },
  props: {
    title: {
      type: String,
      default: process.env.VUE_APP_ProjectName,
      required: false
    },
    showTitle: {
      type: Boolean,
      default: true,
      required: false
    },
    reload: {
      type: String,
      default: process.env.VUE_APP_DesktopPath,
      required: false
    }
  }
}
</script>
<style>
.b {
  float: right;
  font-size: 18px;
  margin-right: 20px;
  margin-top: 2px;
  /*color: #fff;*/
}
</style>
